﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace SanguoSharp.Server
{
    public sealed class ServerMain
    {
        public static void Main(string[] cmdArgs)
        {
            int port = Config.Instance.GetInteger("Server.Port", 2147);
            int adminPort = Config.Instance.GetInteger("Server.AdminPort", 2148);

            Utils.Serve<Server>(port);
            ServerUtils.ServeAdmin<Server>(adminPort, System.Net.IPAddress.Any);

            Thread.Sleep(Timeout.Infinite);
        }
    }
}
